# our final base image
FROM openjdk:8u191-jdk-alpine

# set deployment directory
WORKDIR /questionnaire

# copy over the built artifact from the maven image
COPY questionnaire-release-exec.jar ./

# set the startup command to run your binary
ENTRYPOINT ["sh", "-c", "java -Duser.timezone=GMT+08 -Dspring.profiles.active=$PROFILE \
-Dapollo.configService=$APOLLO_CONFIG_URL -Xloggc:gc.log  -XX:+PrintGCDetails  \
-XX:+PrintGCTimeStamps -Xmx700m -Xms700m -Xmn350m -XX:+UseParallelGC -XX:-OmitStackTraceInFastThrow -jar  ./questionnaire-release-exec.jar"]
